package com.vhly.ddxdecompiler.dexreader.file.constant;

import com.vhly.ddxdecompiler.dexreader.file.DexFile;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2009-10-20
 * Time: 23:52:06
 * Platform: Mac OS X 10.5.8
 *
 * @author vhly[FR]
 */
public class CstLiteralBits implements CstConstant{
    private long bits;

    public void setLiteralBits(long value) {
        bits = value;
    }

    public long getLiteralBits() {
        return bits;
    }

    public boolean isLongValue(){
        return bits > Integer.MAX_VALUE;
    }

    public int getIntBits() {
        return (int) bits;
    }

    public void reloc(DexFile dex) {
    }

    public Object getJavaData() {
        return null;
    }

    public String getJavaType() {
        return "I";
    }
}
